package com.company.management.service.impl;

import com.company.management.mapper.DepartMentMapper;
import com.company.management.modal.entity.DepartMent;
import com.company.management.service.DepartMentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class DepartMentServiceImpl implements DepartMentService {

    @Resource
    private DepartMentMapper departMentMapper;

    @Override
    public List<DepartMent> listAll() {
        return departMentMapper.listAll();
    }
}
